<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <p>{{msg}}</p>
        <input type="text" v-model="msg">
        <!-- <header></header> -->
    </div>

    <script>
        Vue.component("header",{
            template:`<div>组件</div>`,
            data(){
                return {
                    username:"xiaowang"
                }
            }
        })
        new Vue({
            data: {
                msg: "老师信息",
                user:{id:1}
            }
        }).$mount("#app")
    </script>
</body>

</html>